import { t } from '@/locales/i18n';

import { FlowNodeTemplateTypeEnum, FlowNodeTypeEnum } from '../../constant';
import { FlowNodeTemplateType } from '../../node';
import { getHandleConfig } from '../utils';

export const PluginOutputModule: FlowNodeTemplateType = {
  id: FlowNodeTypeEnum.pluginOutput,
  templateType: FlowNodeTemplateTypeEnum.systemInput,
  flowNodeType: FlowNodeTypeEnum.pluginOutput,
  sourceHandle: getHandleConfig(false, false, false, false),
  targetHandle: getHandleConfig(false, false, false, true),
  unique: true,
  forbidDelete: true,
  avatar: 'pluginOutput.svg',
  name: t('template.plugin_output'),
  intro: t('intro_custom_plugin_output'),
  showStatus: false,
  version: '481',
  inputs: [],
  outputs: [],
  isFolded: true,
};
